﻿<Window x:Class="NetWebScript.Debug.App.ProgramsListWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="NetWebScript Standalone Debugger" Height="300" Width="300">

    <DockPanel Margin="10">
        <ListView x:Name="list" SelectedValuePath="." ItemsSource="{Binding Programs}">
            <ListView.ItemContainerStyle>
                <Style TargetType="{x:Type ListViewItem}">
                    <EventSetter Event="MouseDoubleClick" Handler="OpenProgramWindow" />
                </Style>
            </ListView.ItemContainerStyle>
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Program" Width="300"  DisplayMemberBinding="{Binding Name}"   />
                </GridView>
            </ListView.View>
        </ListView>
    </DockPanel>
</Window>
